package com.study.javaBasic.annotation;

/**
 * @ClassName: Person
 * @Description:
 * @author: 王胜
 * @date 2021/6/18
 * @Version: 1.0
 **/
public class Person {
    @Range(min = 1, max = 20)
    public String name;

    @Range(max = 10)
    public String city;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
